package com.hliushi.decorator.example01;

/**
 * @author: hliushi
 * @date: 2023/2/14 22:55
 **/
public class _Client {

    public static void main(String[] args) {

        // 用装饰器包裹女孩后在展示
        new WhitewashDecorator(new Girl()).show();

        System.out.println("\n-----------------------------------------------");
        new Blush(new FoundationMakeup(new Lipstick(new Girl()))).show();
        System.out.println("\n-----------------------------------------------");
        new FoundationMakeup(new Blush(new Lipstick(new Girl()))).show();
        System.out.println("\n-----------------------------------------------");
        new Lipstick(new Blush(new FoundationMakeup(new Girl()))).show();
        System.out.println("\n-----------------------------------------------");
        new FoundationMakeup(new Lipstick(new Girl())).show();
    }
}
